RectanglePropertyRight
Type
operator
Summary
The right edge of a rectangle value.
Syntax
the right of <mRect>
Description
The location along the x-axis of the right edge of the rectangle.
note
Setting the right of a rectangle will reposition it without altering the width or height.
Parameters
Name | Type | Description |
---|---|---|
mRect | An expression which evaluates to a rectangle. |
Examples
variable tRect
put rectangle [50,100,150,200] into tRect
// Store the right edge of the rectangle in a variable
variable tRight
put the right of tRect into tRight
// Move the rectangle horizontally to a new position.
set the right of tRect to (tRight + 10)